package org.ymx.myLinkedList;

public class Node<AnyType> {
    /**
     * 值
     */
    public AnyType data;

    /**
     * 上一个元素值
     */
    public Node<AnyType> prev;

    /**
     * 下一个元素值
     */
    public Node<AnyType> next;

    public Node(AnyType data, Node<AnyType> prev, Node<AnyType> next) {
        this.data = data;
        this.prev = prev;
        this.next = next;
    }
}
